package com.example.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@SpringBootApplication
@Controller
@ServletComponentScan(basePackages = "com.example.demo.DemoFilter")
public class test extends SpringBootServletInitializer {
    public static void main(String[] args){
        SpringApplication.run(test.class, args);
    }

    @RequestMapping(value = "/main")
    public String TestDemo(){
        return "main";
    }
}
